package com.hm.hall.commons.domain.resp;


import com.hm.hall.commons.constans.ErrorCode;

/**
 * 带有数据对象的,返回数据基类
 */
public class BaseDataResp<T> extends BaseResponse {
    /**
     * 数据对象
     */
    public T data;

    public BaseDataResp() {
    }

    public BaseDataResp(int errorCode, String errMsg) {
        super(errorCode, errMsg);
    }


    public BaseDataResp(ErrorCode errorCode) {
        super(errorCode);
    }

    public BaseDataResp(T data) {
        this.data = data;
    }

    public BaseDataResp(int errorCode, String errMsg, T data) {
        super(errorCode, errMsg);
        this.data = data;
    }


    public BaseDataResp(ErrorCode errorCode, T data) {
        super(errorCode);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}

